package com.test.kk;

public class TT {
	public static void method(int[] a, int i, int j) {
		int temp = a[i];
		a[i] = a[j];
		a[j] = temp;
		System.out.println("method:a=" + a[0] + ",a[1]=" + a[1]);
	}
	
	public static void value(String name) {
		name = "A";
		System.out.println("value:"+name);
	}
	public static void main(String[] args) {
		int[] a = { 6 ,8};
		System.out.println("main:a=" + a[0] + ",a[1]=" + a[1]);
		method(a, 0, 1);
		System.out.println("main:a=" + a[0] + ",a[1]=" + a[1]);
		
		System.out.println("------------------");
		String name = "B";
		value(name);
		System.out.println("main:"+name);
	}
}
